//
//  HHTest2ViewController.m
//  Flower
//
//  Created by 花花 on 2016/12/6.
//  Copyright © 2016年 花花. All rights reserved.
//

#import "HHTest2ViewController.h"

@interface HHTest2ViewController ()

@end

@implementation HHTest2ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIButton *btn =[UIButton buttonWithType:UIButtonTypeCustom];
    
    [btn setImage:[UIImage imageNamed:@"Smile"] forState:UIControlStateNormal];
    [btn setImage:[UIImage imageNamed:@"Smile-1"] forState:UIControlStateHighlighted];;
    btn.frame = CGRectMake(0, 0 ,100 ,100 );
    btn.center = self.view.center;
    [btn addTarget:self action:@selector(btnClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}
-(void)btnClick{
    
    [self.navigationController popViewControllerAnimated:YES];
    
    
}

@end
